package com.chicken.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chicken.pojo.Member;
import com.chicken.repository.MemberInte;
import com.chicken.service.MemberService;
@Service("memberService")
public class MemberServiceImpl implements MemberService{
	
	@Resource
	MemberInte memberinte;
	
	public int addMember(Member member) {
		
		return memberinte.addMember(member);
	}
	public List<Member> memberAll() {
		return memberinte.memberAll();
	}

	public Member memberById(Integer id) {
		return memberinte.memberById(id);
	}

	public int deleteMember(Integer id) {
		return memberinte.deleteMember(id);
	}

	public int updateMember(Member member) {
		return memberinte.updateMember(member);
	}

}
